home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / doc / DirectX8 / DirectX8_Docs_Readme.txt < prev    next >
Text File  |  2001-10-24  |  6KB  |  119 lines

  1.  
  2.             Microsoft DirectX 8.1 SDK Readme File
  3.                         October 2001
  4.   (c) Microsoft Corporation, 2001. All rights reserved.
  5.  
  6. This document provides late-breaking or other information that supplements the Microsoft DirectX 8.1 SDK documentation.
  7.  
  8. ------------------------
  9. How to Use This Document
  10. ------------------------
  11.  
  12. To view the Readme file on-screen in Windows Notepad, maximize the Notepad window. On the Edit menu, click Word Wrap. To print the Readme file, open it in Notepad or another word processor, and then use the Print command on the File menu.
  13.  
  14. ---------
  15. CONTENTS
  16. ---------
  17.  
  18. 1.  PRINTING ISSUES
  19.  
  20. 2.  DIRECTX GRAPHICS
  21.     2.1  IDirect3D8::CheckDeviceFormat Method
  22.     2.2  IDirect3D8::CreateVertexShader Method
  23.     2.3  D3DXMATRIXA16
  24.     2.4  Pixel Shader Instruction texm3x3spec
  25.     2.5  Vertex Shader Macros
  26.     2.6  D3DXVec2Transform Function
  27.  
  28. 3.  DIRECTPLAY
  29.     3.1  IDirectPlay8Peer::EnumHosts and IDirectPlay8Client::EnumHosts
  30.  
  31.  
  32. -------------------
  33.  
  34. 1.  PRINTING ISSUES
  35.  
  36. If you try to print a heading and all of its subtopics, there are several known issues.
  37.  
  38. - There will be no formatting on the pages.
  39. - If you are using Microsoft Internet Explorer 5.5, content might be missing from your printed pages. Use Internet Explorer 5.0 or 6.0 instead.
  40.  
  41. If you print only one topic at a time, the printed page should contain all the formatting and content.  This is the recommended printing method.
  42.  
  43. To change the font for printing, click the Font button. Successive clicks will take you through the various font options. It is recommended that you select the smallest font size for printing.
  44.  
  45.  
  46. 2.   DIRECTX GRAPHICS 
  47.  
  48. 2.1  IDirect3D8::CheckDeviceFormat Method
  49.  
  50. The IDirect3D8::CheckDeviceFormat method takes the Usage parameter, which is missing a value in the documentation. D3DUSAGE_DYNAMIC may also be used.
  51.  
  52. 2.2  IDirect3D8::CreateVertexShader Method
  53.  
  54. For mixed mode devices, CreateVertexShader might fail validation if three things happen.
  55.  
  56. - The device is in hardware vertex-processing mode. 
  57. - The application calls CreateVertexShader with software usage.
  58. - The number of streams supported by hardware is different than the number of streams declared by the vertex shader declaration. 
  59.  
  60. The failure is a result of the CreateVertexShader validation incorrectly using the hardware device to check the number of data streams, instead of using the number of streams in the vertex shader declaration. The workaround in version 8.1 is to enable the software vertex processing mode before calling CreateVertexShader.
  61.  
  62.  
  63. 2.3   D3DXMATRIXA16  
  64.  
  65. A 16-byte (quad WORD) aligned D3DXMATRIX. A 16-byte aligned matrix with a size and a starting memory address that are multiples of 16. Some CPUs use an aligned matrix to optimize the performance of D3DX math functions.
  66.  
  67. The following list shows which compilers support aligned matrices.
  68.  
  69. - Microsoft Visual Studio 7 compilers guarantee 16-byte aligned D3DXMATRIXA16 variables.
  70.  
  71. - Visual Studio 6 compilers with the Visual Studio 6 Processor Pack installed guarantee 16-byte aligned D3DXMATRIXA16 variables. In order to get _ALIGN_16 and D3DXMATRIXA16 defined, you must manually edit the D3dx8math.h file and remove the check for Visual Studio 7 (#if _MSC_VER >= 1300).
  72.  
  73. - All compilers guarantee 16-byte aligned D3DXMATRIXA16 variables allocated on the heap. 
  74.  
  75. - Non-Visual Studio compilers do not guarantee 16-byte aligned D3DXMATRIXA16 variables when they are allocated as a global variable or as a local variable on the stack.
  76.  
  77. D3DX does not define 16-byte aligned vectors or quaternions. It is suggested that you use _ALIGN_16 on your vectors and quaternions with D3DX math functions, because 16-byte alignment greatly improves performance for some processors. For a definition of _ALIGN_16, see D3dx8math.h.
  78.  
  79.  
  80. 2.4  Pixel Shader Instruction texm3x3spec
  81.  
  82. The reference page for the pixel shader instruction texm3x3spec incorrectly lists three source registers as input. This instruction takes only two source registers as inputs, as shown in the table following:
  83.  
  84.                                  Registers
  85. Argument  Description            vn   cn   tn    rn    Version
  86. --------  -----------           -------------------    -------
  87. dest      destination register              x          1.0, 1.1, 1.2, 1.3, 1.4
  88. src0      source register                   x          1.0, 1.1, 1.2, 1.3, 1.4
  89. src1      source register              x               1.0, 1.1, 1.2, 1.3, 1.4
  90.  
  91.  
  92. 2.5  Vertex Shader Macros
  93. Be careful when using vertex shader macros m3x2, m3x3, m3x4, m4x3, and m4x4 because the output of these macros is undefined if the input and output parameters use the same register. 
  94.  
  95.  
  96. 2.6  D3DXVec2Transform Function
  97.  
  98. In the documentation for the function D3DXVec2Transform, the first parameter type is incorrectly listed as D3DXVector4** pOut (a pointer to a pointer). The first parameter type should be D3DXVector4* pOut (a pointer). Therefore, the correct function signature is:
  99.  
  100. D3DXVECTOR4* WINAPI D3DXVec2Transform(
  101.    D3DXVECTOR4 *pOut, 
  102.    CONST D3DXVECTOR2 *pV, 
  103.    CONST D3DXMATRIX *pM );
  104.  
  105.  
  106. 3.   DIRECTPLAY
  107.  
  108. 3.1  IDirectPlay8Peer::EnumHosts and IDirectPlay8Client::EnumHosts
  109.  
  110. The documentation is missing a possible return value. DPNERR_USERCANCEL will be returned if the application stops the enumeration. 
  111.  
  112. Also, the following sentence in the fourth paragraph:
  113.  
  114. "Asynchronous enumerations can be stopped at any time by calling IDirectPlay8Peer::CancelAsyncOperation and either passing the handle returned in the pAsyncHandle parameter or setting the DPENUM_CANCEL flag in the dwFlags parameter."
  115.  
  116. should read:
  117.  
  118. "Asynchronous enumerations can be stopped at any time by calling IDirectPlay8Peer::CancelAsyncOperation and either passing the handle returned in the pAsyncHandle parameter or setting the DPNCANCEL_ENUM flag in the dwFlags parameter."
  119.